<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 流沐颖
  Date: 2022/6/4
  Time: 16:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>更新员工信息</title>
</head>
<body>
<form action="/emp?method=updateEmp" method="post">
    <h2 >您正在修改的员工编号为：<input type="text"  name="eno" value="${emp.eno}" readonly /></h2>
    员工姓名：<input type="text" name="ename" value="${emp.ename}"/><br/>
    员工性别：
    <c:if test="${emp.esex=='男'}">
        <input type="radio" name="esex" value="男" checked/>男
        <input type="radio" name="esex" value="女" va/>女<br/>
    </c:if>
    <c:if test="${emp.esex=='女'}">
        <input type="radio" name="esex" value="男" />男
        <input type="radio" name="esex" value="女" checked/>女<br/>
    </c:if>
    员工工资：<input type="text" name="salary"  value="${emp.salary}" /><br/>
    员工密码：<input type="password" name="pwd" value="${emp.pwd}"/><br/>
    员工生日：<input type="date" name="bornDate" value="${emp.bornDate}"/><br/>
    员工部门编号：<input type="number" name="dno" value="${emp.dno}"/><br/>
    <input type="submit" value="修改" />
    <input type="reset" value="重置" />
</form>
</body>
</html>
